home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / Harvest C / MPW Int & Lib / Interfaces / Folders.h < prev    next >
Text File  |  1991-04-17  |  2KB  |  66 lines

  1. /************************************************************
  2.  
  3. Created: Sunday, January 6, 1991 at 9:25 PM
  4.     Folders.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.         Copyright Apple Computer, Inc.    1989-90
  9.         All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __FOLDERS__
  15. #define __FOLDERS__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #ifndef __FILES__
  22. #include <Files.h>
  23. #endif
  24.  
  25.  
  26. enum {
  27.  
  28.     kOnSystemDisk = 0x8000
  29.  
  30.  
  31. #define kCreateFolder true
  32. #define kDontCreateFolder false
  33.  
  34. #define kSystemFolderType 'macs'                /*the system folder*/
  35. #define kDesktopFolderType 'desk'               /*the desktop folder; objects in this folder show on the desk top.*/
  36. #define kTrashFolderType 'trsh'                 /*the trash folder; objects in this folder show up in the trash*/
  37. #define kWhereToEmptyTrashFolderType 'empt'     /*the "empty trash" folder; Finder starts empty from here down*/
  38.  
  39. #define kPrintMonitorDocsFolderType 'prnt'      /* Print Monitor documents */
  40.  
  41. #define kStartupFolderType 'strt'               /*Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here*/
  42. #define kAppleMenuFolderType 'amnu'             /*Finder objects to put into the Apple menu go here*/
  43. #define kControlPanelFolderType 'ctrl'          /*Control Panels go here (may contain INITs)*/
  44. #define kExtensionFolderType 'extn'             /*Finder extensions go here*/
  45.  
  46. #define kPreferencesFolderType 'pref'           /*preferences for applications go here*/
  47. #define kTemporaryFolderType 'temp'             /*temporary files go here (deleted periodically, but don't rely on it.)*/
  48. };
  49.  
  50. #ifdef __cplusplus
  51. extern "C" {
  52. #endif
  53. #if SystemSevenOrLater
  54. pascal OSErr FindFolder(short vRefNum,OSType folderType,Boolean createFolder,
  55.     short *foundVRefNum,long *foundDirID)
  56.     = {0x7000,0xA823}; 
  57. #else
  58. pascal OSErr FindFolder(short vRefNum,OSType folderType,Boolean createFolder,
  59.     short *foundVRefNum,long *foundDirID);
  60. #endif
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64.  
  65. #endif
  66.